package io.finer.erp.jeecg.bas.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.finer.erp.jeecg.bas.entity.ZrkOrderProcess;
import io.finer.erp.jeecg.bas.entity.ZzShoporder;
import io.finer.erp.jeecg.bas.vo.CreatePartVO;
import io.finer.erp.jeecg.bas.vo.CreatePickVO;
import io.finer.erp.jeecg.bas.vo.SplitMesVO;

import com.baomidou.mybatisplus.extension.service.IService;

import io.finer.erp.jeecg.bas.vo.SplitTaskVO;
import org.jeecg.common.api.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import java.io.Serializable;
import java.util.Collection;
import java.util.Date;
import java.util.List;

/**
 * @Description: 车间任务/订单
 * @Author: jeecg-boot
 * @Date:   2020-09-02
 * @Version: V1.0
 */
public interface IZzShoporderService extends IService<ZzShoporder> {

	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	public Result<?> getCustomer(String orderId);

	public Result<?> createPart(CreatePartVO createPart);

	/**
	 * @Description MES单 拆单
	 * @param splitMes
	 * @return
	 * Create at: 2021-01-21 10:52:42
	 * @author: duany
	 * Revision:
	 *    2021-01-21 10:52:42 - first revision by duany
	 *        
	 */
	public Result<?> splitPartMes(SplitMesVO splitMes);

	/**
	 * 切张MES单拆单
	 * @param splitMes
	 * @return
	 */
	public Result<?> splitPartMesQz(SplitMesVO splitMes);

	/**
	 * 复合MES单拆单
	 *
	 * @param splitMes
	 * @return
	 */
	public Result<?> splitPartMesFH(SplitMesVO splitMes);

	/**
	 * 切张任务单拆单
	 * @param splitMes
	 * @return
	 */
	public Result<?> splitTask(SplitTaskVO splitMes);


	/**
	 * MES单撤回
	 * @param id
	 * @return
	 */
	public Result<?> recall(String id);
	
	/**
	 * MES单撤回
	 * @param id
	 * @return
	 */
	public Result<?> recallDelivery(String id);


	/**
	 * 切张任务单撤回生成的分切任务单
	 * @param id
	 * @return
	 */
	public Result<?> recallQzOrFq(String id);


	public List<ZzShoporder> selectOrderByOrderNo(String orderNo);


	/**
	 * 直接出库
	 * @param createPickVO
	 * @return
	 */
	public Result<?> directShip(CreatePickVO createPickVO);



}
